package com.qiang.test;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class Demo02 {
    //不推荐使用的日志
    //private static final Logger LOGGER = Logger.getLogger("Demo02.class");

    //推荐使用
    private static final Logger LOGGER = LoggerFactory.getLogger(Demo02.class);

    public static void main(String[] args) {
        LOGGER.debug("debug级别的日志");
        LOGGER.info("info级别的日志");
        LOGGER.warn("warn级别的日志");
        LOGGER.error("error级别的日志");
    }

}
